package cn.fjsay.java.demo4;

public class TriAngle {
    private double base;//底长
    private  double height; //高

    public TriAngle(double base, double height) {
        this.base = base;
        this.height = height;//构造函数
    }
    public  double getBase(){
        return base;//底长
    }
    public void setBase(double base1){
        this.base=base1;
    }
    public double getHeight(){
        return height;//高度
    }
    public void setHeight(double height1){
        this.height=height1;
    }
}
